﻿using System.Web;
using System.Web.Optimization;

namespace User.Web.UI
{
    public class BundleConfig
    {
        // For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
        public static void RegisterBundles(BundleCollection bundles)
        {
            //Minifien und zusammenbauen der einzelnen Packete aktivieren.
            //BundleTable.EnableOptimizations = true;

            bundles.Add(new ScriptBundle("~/bundles/main").Include(
                "~/Scripts/jquery-{version}.js", "~/Scripts/bootstrap.min.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                "~/Scripts/jquery.unobtrusive*",
                "~/Scripts/jquery.validate*"));

            bundles.Add(new ScriptBundle("~/bundles/knockout").Include(
                "~/Scripts/knockout-3.0.0.js", 
                "~/Scripts/knockout.mapping-latest.js"));

            // Use the development version of Modernizr to develop with and learn from. Then, when you're
            // ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                "~/Scripts/modernizr-*"));

            bundles.Add(new StyleBundle("~/styles/bootAndFont").Include("~/Content/bootstrap.css", "~/Content/font-awesome.css"));

            //https://github.com/scott-xu/System.Web.Optimization.Less
            bundles.Add(new LessBundle("~/Content/myCss").Include("~/Content/my.less"));
        }

    }
}